pow.webserver
Class HeartBeat

java.lang.Object
  extended by pow.webserver.HeartBeat
All Implemented Interfaces:
java.lang.Runnable

public class HeartBeat
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
HeartBeat(javax.servlet.ServletContext s, int h, int p)
           
 
Method Summary
 void run()
          send a periodic heartbeat message to every connected ivy bus
 void stop_thread()
          stop the heartbeat process of the server
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeartBeat

public HeartBeat(javax.servlet.ServletContext s,
                 int h,
                 int p)
Parameters:
s - the object which stores ivysessions
h - the period of the heartbeats
p - the udp port to use to send heartbeat
Method Detail

run

public void run()
send a periodic heartbeat message to every connected ivy bus

Specified by:
run in interface java.lang.Runnable

stop_thread

public void stop_thread()
stop the heartbeat process of the server